package platform;

import communication.ParameterizedMessage;
import communication.ParameterizedMessageImpl;
import service.AbstractService;
import service.ServiceRequestHandler;

public class ServiceStatusRequestHandler extends ServiceRequestHandler {

	public ServiceStatusRequestHandler(AbstractService service) {
		super("ServiceControl:Status", service);
	}

	@Override
	public ParameterizedMessage handle(ParameterizedMessage message) {
		ParameterizedMessage msg = new ParameterizedMessageImpl();
		msg.setParameter("name", this.getService().getServiceName());
		
		msg.setParameter("status", "Running");
		
		return msg;
	}

}
